#pragma once
#include "afxcmn.h"
#include "afxwin.h"


// CDskWnd dialog

class CDskWnd : public CDialog
{
	DECLARE_DYNAMIC(CDskWnd)

public:
	CDskWnd(CString category, CString path, CWnd* pParent = NULL);    // standard constructor
	virtual ~CDskWnd();

// Dialog Data
	enum { IDD = IDD_DIALOG_DSK };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();
	DECLARE_MESSAGE_MAP()
public:
	CString m_sTitle;
	CString m_editsTitle;
	CListCtrl m_ListMain;
	CEdit m_editTitle;
	afx_msg void OnBnClickedButtonHide();
	afx_msg void OnStnClickedStaticTitle();
	afx_msg LRESULT OnNcHitTest(CPoint point);
	afx_msg void OnEnKillfocusEditTitle();
	int m_Id;

	void RefreshListControl();
	CImageList m_BigImage, m_SmallImage;	
	afx_msg void OnPaint();
	afx_msg void OnMove(int x, int y);
	afx_msg void OnNMClickListMain(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnNMDblclkListMain(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnLvnItemchangedListMain(NMHDR *pNMHDR, LRESULT *pResult);

	CMenu m_PopMenu; 
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnNcRButtonDown(UINT nHitTest, CPoint point);
	afx_msg void OnPopAddClass();


public:
	afx_msg void OnLvnBegindragListMain(NMHDR *pNMHDR, LRESULT *pResult);

public:
	CImageList * m_pImageList;
	afx_msg void OnDropFiles(HDROP hDropInfo);
	afx_msg void OnLvnBegindragListFiles(NMHDR *pNMHDR, LRESULT *pResult);
	CString category;
	CString path;
	void insertNewFile(CString newFile);
	afx_msg void OnNMDblclkListFiles(NMHDR *pNMHDR, LRESULT *pResult);

	Image *image;

	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnPopQuit();
	afx_msg void OnPopHide();
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnNcLButtonDblClk(UINT nHitTest, CPoint point);
	afx_msg void OnPopOpenFolder();
	afx_msg LRESULT  OnHotKey(WPARAM  wParam,LPARAM  lParam); 

	BOOL m_bHide;
};
